package com.cxz.kotlin.baselibs.rx.bus;





/**
 * RxBus事件类
 * Created by Czg on 2018/9/7.
 */
public class BusEvent {

    /**
     * 登入登出事件
     */
    public static class LoginEvent {

        public LoginEvent(boolean isLogin) {
            this.isLogin = isLogin;
        }

        public boolean isLogin;
    }

    /**
     * 注册成功时间
     */
    public static class RegisterEvent {

        /**
         * type为1是账号注册，type为2是小B注册
         *
         * @param name
         * @param password
         */
        public RegisterEvent(String name, String password, int type, String userId) {
            this.username = name;
            this.psw = password;
            this.type = type;
            this.userId = userId;
        }

        public String username;
        public String psw;
        public int type;
        public String userId;
    }

    /**
     * 项目选择
     */
    public static class ProjectEvent {

        public ProjectEvent(String project_addr,String projectName,String id) {
            this.project_addr = project_addr;
            this.projectName = projectName;
            this.projectId = id;
        }

        public String projectName;
        public String projectId;
        public String project_addr;
    }

}
